Yes. Windows Defender antivirus protection has been built into the operating system since Windows 8, but only recently has this protection improved with Windows 10. Windows Defender offers solid protection against regular viruses, but it may not be able to protect your device against newer, more sophisticated malware, especially malicious links and phishing attempts.
We recommend getting a third-party antivirus to work with your Windows Defender protection to fill in any security gaps.