No, they do not know what is happening to them the first time.
Nesting behaviors and such are hardwired instincts, they don't know why they have to do it, they just know they have to do it.
Nesting behaviors and such are hardwired instincts, they don't know why they have to do it, they just know they have to do it.