Looking for a code

Hi, I’m looking for a code.
For example:

If (player is jumping){
The enemy wait one second, and jump;
}

Is this possible?