Yes, you can sell a house immediately after buying it, but legal and financial factors may influence the process. Mortgages, title transfer restrictions, and potential penalties may impact your ability to sell swiftly. Consulting legal and financial experts is recommended to navigate these considerations.