This is absolutely fine, and something I often do myself. The fare charged is based on the touch in time at the start of the journey, not the service you travel on. All a RPI will be interested in is whether you've touched in.
At the end of the peak period it works the other way round so...