Was medieval armor bulletproof?

The metal suits worn by knights during the Middle Ages were originally designed to protect against weapons such as swords. But could medieval armor also stop bullets?