Does a new Macbook Pro come with a virus program?
OS X already includes everything it needs to protect itself from viruses and malware. Keep it that way with software updates from Apple. Robust anti-virus and anti-malware protections have been integrated in OS X since its inception, and have only improved in the many years since then. Mavericks represents the beneficiary of all that experience. There is no separate program to install, but there are features you can use and practices you can observe to customize or augment those protections:
If you install Windows on your Mac using Boot Camp or virtualization software, Windows requires its own anti-virus measures. That's nothing new.
The following principles are intended specifically for OS X but can be adapted for any operating system or device.
Summary: Use common sense and caution when you use your Mac, just like you would in any social context. There is no product, utility, or magic talisman that can protect you from all the evils of mankind.