Hi.
If its occasionally and on veg no. (if its not occasionally yes its a problem and can slow your plant)
The crucial time where you should not cross 26 degress is at 3weeks of flowering when buds are throwing pistils (heat at this stage can kill the smell the taste and the effect)
But still its recommended even on veg to keep it at 25 degrees
Try to regulate your temp by downing your light intensity +better air extraction...... I would even say add AC but its not at all of us budget.
Cheers mate and happy growing.