Yes. So an enemy attempts to enter a square adjacent to you. As an immediate interrupt, you make an Opportunity Attack, at which point the enemy is not yet in the square adjacent to you. After you make your OA, if the enemy still can, he enters the square adjacent to you.