I’m sure there are plenty who cannot live where they patrol. Beverly Hills for example. Potomac Md., Bethesda Md., N.W. D.C., as a few more examples. There are plenty more wealthy enclaves such as them in every state.
Beverly Hills PD officers do get paid well...However, I really doubt that an officer could buy a house in Beverly Hills on a cop's salary...Renting a house or an apartment...That's a different story...