Here's the scenario: A bandit with the Attack of Opportunity reaction is standing in a hayloft next to the hole in the floor where a ladder emerges. When a PC rogue climbs up and tries to position himself to fight the bandit, his movement triggers the AoO. The rogue can, in turn, use his Nimble Dodge reaction in response to this attack, correct?