With Mounjaro the answer is no, it has to stay fridge cold until you use it. Two days in transit with ice packs and insulation is ok, but anything longer and it'll likely warm up too much.
Wegovy was changed recently, and now it's allowed 30 degrees for two days while it travels to you.
The worry with a pen that's warmed up too much is that the medicine starts to degrade, so it's weaker or doesn't work, and it could give you a skin or site reaction when you inject. Bacterial contamination is a risk as well. It's unlikely when the pen hasn't been opened, though the makers can't guarantee anything if it wasn't stored by their guidelines.
If it's degraded a lot you'd see clumps, bits or strings floating in it, and then it shouldn't be used.
If it were me, I'd go and collect the pen the moment I could and get it straight in the fridge. If nothing looked different, so it was clear with no bits in it, I'd probably still use it myself. I'd accept the small chance of it working less well.
What I'd never do is leave a sealed pen out at room temp