Can checkout process be modified to ask questions?

Some of the products we want to sell require a set of legal questions to be asked and answered by the buyer at checkout. Can checkout process be modified to ask questions and how?