Yes, male and female uromastyx can be housed together, but there are important considerations. They reach sexual maturity around 2 to 3 years of age, so if you do not want breeding, separate them before then.
Males can be territorial and may fight, so provide at least 20 gallons of space per lizard and include plenty of hiding places to reduce stress. With the right setup, uromastyx can live together harmoniously for many years.