Can you safely change a four-prong electric dryer outlet to a three-prong 240V air conditioner outlet?

No. Call an electrician. 50 dollars is cheap compared to having your dwelling burn up.