You can start a tech company anywwhere outside Silicon Valley. The problem is its harder to scale a fast growing company.
If you are not in a city where such ecosystem exists, you could probably start building a prototype there but as soon as you need to scale up (financially, hiring, or other) you will probably need to start networking or moving a city that has one.