As long as they meet OEM specs or better, you’re good. Some aftermarket ones even have grease fittings for longer life.
If you’re doing the replacement yourself, make sure you grease and clean the bolts well. Seized bolts can be a pain, and it’ll make alignment easier for whoever does it.