Well, I’m a fairly new DJ myself but have been playing and recording music for years. Based on research I’ve done, a lot of successful DJs also produce their own music so I think it definitely can help. I’d also recommend some of the online courses that Digital DJ Tips offers as they do talk about some production techniques which are relevant to DJing. If you were to take an overall music production class, while I think can still be helpful, might not be so relevant to the performing DJ.
Good luck and hopefully others will provide more feedback