From what I’ve just seen myself, by default it doesn’t.
I made a comp of length 10 seconds, adding layers to that length, but I only need 2 seconds, later I adjusted the comp settings to 2 seconds. So all the layers were still at 10 seconds, with all their effects to that length as well.
Ony 2 seconds were rendered.