Yes, and it's worth knowing how. Monitoring software — keyloggers in particular — can be installed on a family computer and record every keystroke, which means passwords and messages included. On a shared machine, that's a real possibility rather than a paranoid one.
Keep your system patched, run reputable anti-spyware, and clear browser history if the machine is shared. Windows Defender is already built into Windows and handles routine scanning without extra software.
The broader habit that helps most is being cautious about what you download and which sites you hand credentials to. Untrusted downloads are the usual way monitoring tools end up on a machine in the first place.