If there is a kit available for your model that supports XM yes. Check the Mazda site for accessories or parts for your car.
Sirius XM also offers streaming, not sure if youve considered that route. It would save you money on hardware and its probably cheaper than traditional XM