The solar output will be hindered if the solar panels are partially shaded, but microinverters or power optimisers might make it work. However, installing solar panels on completely shaded roofs might not be worth the cost.