You can indeed train cats, and it's good fun for both cats and humans to do so.
I would never personally let a cat outside overnight during nesting season, for instance, and with my current cat I prefer to let him out for a couple of hours in mid-morning, then whistle him in. (It happens that this suits my work schedule.)