Works in theory! Practice? That's something else
The cost of a professionally installed PV system varies by location and by the amount of PV installed. With these numbers you might be able to better negotiate a price for your roof. Pricing is always changing over time and these tables were from 2018, so your mileage may vary.