can i calculate View Shed using DTM and vector layer of buildings with height instead of using DSM

can i calculate View Shed using DTM and vector layer of buildings with height instead of using DSM?. I want to calculate the View Shed with a receiver that have a height above ground and not use the vectors as a obstacle.
thanks