Yes you can. The only issue could be gain matching. Professional grade XLR runs +24Dbu with lots of headroom and usually on at least 18 volt rails. This can be too hot for consumer grade equipment running on 5 volt rails. In this case some attenuation might be necessary and/or gain adjustment. Keeping signal levels as high as possible throughout the audio chain is the best way to preserve SNR.