It is OK for an Input to be on all the time.
The code you have shown should work but it could be reduced by putting up to 3 inputs in series on the 1st rung. Then, put the last 2 two plus M0 in series on the 2nd rung. Of course, the rest of the rungs would need to be updated or changed to take those changes into account.
See attached pdf for example of your code re-arranged as I tried to describe.