It's important, but I don't think it's crucial. I've seen a couple programmers that are really good that do not have good memories. They always have apis and cheat sheets open in their browsers they are constantly referencing, along with frequent searches on google.