What do you mean you don't know what sex it is? Take a good look at the back of its foot do you see a spur or not.? Nice looking chameleon you have there.
Yeah, they need to be in separate enclosures. It will stress them both out, especially the female, if you don't separate them. Plus you will have more eggs than you can handle, and if you're not doin' genders yet, you probably aren't ready to jump into a breeding project!