Yes that way works ok and I've used similar setups my self in past but ideally you want to reduce the amount of idlers to minimum. So if you have no restrictions to where motor goes etc then other way is slightly better. Less friction, less to go wrong.