Yes, you can sell your house during foreclosure in Pennsylvania. In fact, selling your house before the foreclosure process is completed can help you avoid some of the negative consequences of foreclosure, such as damage to your credit score.