the movies/shows im referencing specifically are Hellboy and Supernatural, but others do the same.
Not to discourage more answers, but here're several past questions on the subject, from the subreddit FAQ. In short, the Nazis were definitely linked with occult practices, and some groups within their disorganized regime continued to search for occult relics. It definitely wasn't a major part of their war effort, of course.
^((H/T /u/CATHOLIC_EXTREMIST, /u/idjet, /u/commiespaceinvader, /u/Bernardito, who wrote these good answers.) ^)