Yes, but depending on the state you live in (eg Cali) that isn't legal and thus unenforceable.
(you need to check your local state laws, or country law if outside of USA)
When you leave, they will contact you on their own to find out what you're up to.
My understanding is you are wrong -- while noncompetes are invalid in California, non solicitation agreements are enforceable or at least enough of a grey area that you really don't want to get in a pissing match with a company with in-house counsel. Not to mention the valley is really small.
Maybe a proper lawyer could clarify?
The problem with "pissing matches" with in-house counsel is that they can happen even when you're 100% in the legal right. Anyone can send you a C&D and threaten you to court over anything - whether they are legally correct is another matter.
Justice only exists if you can afford to stand for it with your time and money.
But as numerous people have said, you probably shouldn't have sent the mail you did, and certainly not in the form you did.