Legally yes, but many companies won't accept your booking unless you have 6 months left on the passport. You should check with your tour operator or airline.
The reason for some travel companies insisting that you have an extra 3 / 6 months validity in your passport is to protect you in case you experience some unforeseen incident or accident whilst abroad, i.e. a lengthy stay in hospital, which might involve you running past the expirty date of your passport.