Yes, they can. The agreement to sell a property only becomes legally binding at exchange of contracts, which usually happens several weeks after the offer has been accepted. To reduce the risk of someone else making an offer, you can ask the seller to take their property off the market once they have accepted your offer.