That depends on where you are and the amount of mobility you have. A job 100 miles from home isn’t an option for people with families.
But it might be necessary. For 20+ years it was exceedingly common for me to drive 8-12 hours or fly to the other side of the country (or to a foreign country) in order to work. I would often stay out of town for 5-10 weeks at a time, especially on foreign contracts. Sometimes it was shorter, sometimes longer. If you aren't willing to go where the work is then you are imposing limitations on yourself. Similarly, if you aren't willing to develop broad based skills then you and you alone are limiting yourself. Lots of people with families travel for a living every day. Hotels in every town are full of people who travel for a living. I employed over 100 people at one time, most of whom had families and all but 10 or so in the office traveled just like I did. Is it easy? No, but it was necessary and quite profitable......
I used to drive 160 miles round trip, everyday for 5 years.
I now Rent an apartment 140 miles from my house. I Return on Weekends.
I have four kids. Its not easy.
I will not buy a house where I work, because that changes every 4 or 5 years. (Companies get sold or close) So I keep the old house as my base.
But now that I have free healthcare, I have no worries at all ... s/off