Rarely, malignancy can cause a granulomatous reaction that resembles sarcoidosis, but I doubt it would be so extensive as the one you had, so it is more likely you just had both diseases separately.
Ngokunqabileyo ubungozi besi sifo buye bubangele amaqhuqhuva afana neeseli ezinokukrala kodwa andiqondi ukuba anganaba njengala ubenawo wena, ngoko ke kungenzeka ukuba ezi zifo zikuphathe ngamaxesha ahlukeneyo ezi zifo zozibini.