For the AX-Series, yes, that is possible. If you use both the XLR and the RCA connectors at the same time, please make sure that only one of them transmits a signal at a time. If the speaker receives signals via both connectors at the same time, the sound will be degraded (you will hear both sources simultaneously).
Please note that this does not apply to the F Series. Here the RCA jack disconnects the XLR input.