Yes you can use a debit card to book a flight the same as you would a credit card.
As long as they accept your type of debit card you should have no problem booking a flight either online or at the airport with your debit card.
I've used my debit card many times both at the airport and online when booking a flight and I've had no problems doing so.