Milk Change??

Hello Ladies I have a 5 month old son and when i gave birth to him the hospital always give Similac and he was perfectly fine with that milk. But for some odd reason his dad changed his milk to regular Enfamil since 2 weeks old. Since then he has been drinking Enfamil faithfully. He is now with my mom while i work and she has been giving him Similac due to not being able to go to the store to buy enfamil. Is it ok for him to switch from Enfamil to Similac?? And the Similac he is drinking is a purple i guess food allergy container. Which he does not have allergies. Is that ok for him to drink?