Depends how it happens.
To put it callously, old people can't work much and consume lots of resources, so a plague that kills them off (however sad) actually makes life easier for everyone else.
But lower fertility rates have the opposite effect, the ratio of old people to young people increases, which is why it makes things harder.