I dont see why not if you want to pursued both ?
IMO, people you talked too got it backward, DJing makes a better producers, (imo) why ?
When you DJ ing, you know what drives people on the dance floor, what drives them calm, wild, crazy, and you can put that perspective when you producing, which part of your song going to drives people crazy, where you want people to feelin euphoria ? when u done producing you can take that song you just made and test it out on the battlefield aka dance floor while you DJ ing