Effects that say that the returned creature can't attack (if the creature has defender, for example) affect only the declaration of attackers. They won't stop the returned creature from entering the battlefield attacking.