Yes, you can legally buy a property from your father. There is no bar for such kind of transaction. The bank will give you a housing loan for the purchase of the property, which will be equal to the agreed-upon purchase price.