They do have common themes. Sometimes, they (seem to) explicitly refer to each other, and sometimes, they make vague allusions to things you might interpret as having happened in other Zelda games. But overall, I think it's fair to call most Zelda games independent of each other.