Nope, you get a messege that they gym is under attack and no mon can be placed within 10 mins.
There is an internal cooldown to place a mon in a gym that can't be avoided unless two or more players enter their mon box at the same time and then add the mon, it is the only workaround, but this does not gets around the cooldown when someone else is taking down the gym, only when it is completely blank and you add new mon on it or there are already some other team mates inside and you want to add multiple defenders at the same time.