You might want to read the 12th Amendmnent.
https://www.history.com/news/can-the-president-and-vice-president-be-from-the-same-state