I always do it the other way round as it is best to have a covering over your nails when tanning and it won't ruin the shellac if you give the nails a quick wipe after the tan. Also, if both are done straight after the other, the last thing I would want to do after a tan is sit and have my nails done.