Can toilet training be a cause of mental illness?

Toilet. Not a cause, but faulty training can result in enuresis or encopresis or obstinence with oppositional defiant acts later on.