AMD x Nvidia in one rig

I have 3x3060ti LHR, I have an opportunity to buy rx 580 4gb for a cheap price. Will the rig fine if I put them together?

Make sure you have enough power to power all the cards, the mining SW will be fine

I have a 4 x 3070 and 5700xt mixed rig mining in windows. It works fine. I run NB miner in two instances, one for Nvidia and one for AMD. Don’t know if that’s necessary but my 5700 xt is a little temperamental, so when the driver crashes occasionally all the cards aren’t on the same miner instance.