Any os that has a software repository(with sources) is going to be inherently more secure. If novice users only get their software from APT then they will be eliminating a whole slew of exploits that could infect their computer.
In this regard, Ubuntu is lightyears more secure than Windows.