No, you do not.
You can qualify for a mortgage without a credit card, but having credit cards can boost your credit, allowing you to qualify for more favorable loan terms and reduce the amount of interest you pay.