Can the location of the website owner affect SEO or traffic to his/her website if it’s a .com domain?

Yes, each domain extension should be country-specific to the location of the owner or business location. Other things that can factor rankings are computer location that is doing the search, the searcher’s past browser history, and the searcher’s social media statistics.