can i purchase a home while being separated but still married.
Yes, but your spouse may have rights to claim in it - ie marital funds used for the purchase etc.