A rooted phone is definitely a bigger security risk if you don’t know what you’re doing, as anything with root access is unbounded by the usual android permission system, and can completely demolish your OS. Additionally it can serve as a big warning if someone else has tampered with your device.