It may be possible to buy before your current home sells, but the plan must address qualification, available cash, timing, and the risk of carrying two homes.
Options can include qualifying with both payments, using eligible reserves or equity, bridge financing, or making the purchase contingent on a sale. Compare the cost and timing risk of each path.