Sometimes. That transaction is called an assignment: selling your position in the purchase contract to another buyer before closing. Whether you can do it is controlled entirely by your contract. Some developers prohibit assignment, some allow it only after the building is largely sold, and most that allow it charge a fee and require approval.
The assignment market is real but not guaranteed. Your buyer inherits your contract terms, so your position is attractive when the developer's current pricing has moved above what you contracted at, and hard to move when it has not.
If resale flexibility matters to you, it has to be negotiated and read before signing, not discovered later. Rangely flags each project's assignment policy as part of the contract review and can tell you which developers from Miami to Fort Lauderdale have historically been flexible on it.