Can buildings collapse during aftershocks?

Yes, if a building has been sufficiently weakened during the main earthquake it could collapse during an aftershock.