Partially yes, but AirBnB and similar caused widespread effect of flats and apartment buildings being turned into a hotels.
Residents of a city (via local government) may have some influence on hotel/mall/parking lot construction but this fails when anyone may buy apartments and starts hotel there anyway.
So it makes sense for cities to limit and balance the down sides of short term rentals the same way they limit and balance the down sides of hotels, parking lots, and malls.
What is more visible as due to COVID this flats become available for a normal rental.
Obviously AirBnB, booking.com are only one of factors.