I was thinking the same thing too but I think if you're getting back into fitness after a long time you should do one or the other for the time being.

I'm also going to the gym right now, and plan on doing till maybe 3-6 months before I try out boxing. Luckily the boxing gym and the local gym near my area are just next to each other.