There was a recent discussion on HN about this https://www.nytimes.com/interactive/2023/03/11/upshot/office... ,
but yes. Basically older buildings can work (though the conversions are still expensive and tend to assume luxury apartments) but it's a lot harder with newer skyscrapers.