Of course it is possible to forego on using arable land for solar parks, only using rooftops and similar constructions for this purpose. Roofs - especially large flat ones like used in industry - are natural locations for PV panels and it is hard to see why one would not install them on new constructions, either on top of traditional roof cladding or in place of it. The same goes for large south-facing walls.
Wind turbines can be placed on farm land without unduly reducing land availability to farming, here the problem comes from nearby population complaining about noise pollution (infrasound, [1]) coming from those turbines as well as 'horizon pollution' [2].
[1] https://www.nature.com/articles/s41598-021-97107-8
[2] https://worldcrunch.com/culture-society/skyscrapers-turbines...