A bad navigation ensures that your users are dissatisfied and leave your site. This increases your bounce rate. These and other negative signals are then transmitted to the search engine, which can cause your rankings to drop. Additionally, internal links are a big ranking criterion. So if you work with a good navigation, it will have a positive effect on your search engine rankings.