Yes. "Nutty" has two meanings. The most common meaning is "crazy." It is an informal use. It is an insulting and disrespectful thing to say. It means that some idea is crazy, foolish, wrong, and of no value. For example, "people once had the nutty idea that you could learn things by listening to recordings while you were asleep." Or "My friend Janet has some nutty political ideas, but we are friends anyway."
"Tastes like nuts" is actually the less common meaning. For example, "South American coffee tastes nutty and earthy."
Those are the main meanings for "nutty." "Nut" has a lot of meanings, including one vulgar slang meaning which you can look up yourself in a dictionary.