Can jailbroken iPhones be infected with spyware?

Is a jailbroken iPhone more susceptible to spyware or monitoring apps?

Jailbreaking removes some security layers, making spyware and monitoring apps more feasible. But it depends on what you install and keep updated.