it does not matter. but u understand that after shower, your heartbeat will be quicker than before. so u have to relax yourself and try to calm yourself down and back to the normal heart rate before u do yoga.
after yoga, you can shower, but i prefer 30 minutes after yoga.