When you add a school to your application, there are checkboxes to choose which programs you apply into. You can choose more than one program - ie, MSTP, MD, any other crazy program the school might have, etc.
In addition, I would think if you just applied MSTP and you were rejected, you would probably still be considered for just and MD spot.