Answer:Yes
Step-by-step explanation:
Time taken for the first ball will depend upon the height of roof. As it is dropped so initial vertical velocity will be zero.
so time taken will be

where h=height of roof
g=acceleration due to gravity
Horizontal velocity is given to second ball so it cover more horizontal distance as compared to first but time taken will be same as it has to cover same vertical distance with zero vertical velocity and time taken depends on height of roof and g.