Yes, the meanings are the same, but these are more natural: As soon as the gates were opened , the crowds rushed in. The gates had no sooner been opened than the crowds rushed in. The gates had hardly been opened when the crowds rushed in.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.