Is it possible to perform tricks with 100% safety during commuting?
You can't bend over and tie your shoes with 100% safety -- you might throw your back out, you might lose your balance, etc.

As to "tricks", one man's "trick" is another man's "ho-umm" -- it depends on your level of skill and physical conditioning.  Certainly, hopping a moderate height curb is within the realm of possible (I used to do it on occasion, before I became old and crotchety), but doing so at relatively high speed is non-trivial.

But "tricks during commuting" is concerning -- while you're welcome to be as daring (or foolish) as you want to be when you're safely by yourself and not a hazard to others, when any bicycle, pedestrian, or vehicle traffic is nearby (or potentially nearby but unseen) it's incumbent on you to behave in a manner that does not put others at risk (or serious inconvenience).