Don't do that you will pop your bulb or it will quit working or you will fuck up your ballast there is a reason they rate specific bulbs and ballast for your safety.
Yeah it certainly will not work if you put the HPS in the MH or vice versa. You can buy a switchable ballast for pretty cheap. All I do is switch my bulbs and I am good to go.