No, it is not illegal to sell a house for cash in Pennsylvania or in most places. Cash transactions are a legitimate and common way of buying and selling real estate. However, it's important to follow all relevant real estate laws and regulations during the transaction.