As long as your cabinet has NO light leaks whatsoever you'll be fine. I would definitely make sure there aren't any leaks though, you wouldn't want the sun to fuck up your photoperiod.

Good luck.