Yes, that’s the usual way. Tortoise motors are nice, you have one set of contacts to power the frog and one for feedback. Set that sensor as ONESENSOR in the turnout table and it will follow fine. It won’t matter if JMRI, a throttle, or a button tells a turnout to move.