Of course you can, why not? One is irrelevant to another. Airlines won't stop you from buying a ticket. Another question, if this ticket can be reimbursed in case your visa application is rejected. Check the cancelation policy before you buy the ticket.