To form a yes/no question in English, move the auxiliary verb to the beginning of the sentence.
Statement: You are happy.
Question: Are you happy?
Statement: She has finished her work.
Question: Has she finished her work?
Statement: They will go to the party.
Question: Will they go to the party?
Statement: He can swim.
Question: Can he swim?
If the statement has only a main verb (present or past simple), add do, does, or did.
Present Simple:
Statement: You like pizza.
Question: Do you like pizza?
Past Simple:
Statement: She went to the store.
Question: Did she go to the store?