The mtb front shifter pulls a different amount of cable so you may have issues up front while the rear should be fine due to identical cog spacing and pull rates on the shifter.
I have such a hatred for indexed front derailers I would fit a decent friction shifter there instead.