bootstrap nav vs div class: nav

Documentation says to use:

<nav class="navbar navbar-expand-lg navbar-light bg-light">
But in my views I've been using
 <div class = "navbar navbar-default navbar-static-top">
The code is a little different, I have to try it out, but the question is the same Is applying the class to the div the same as not using the div for bootstrap purposes

The “nav” tag provides more meaning, I guess bootstrap just checks the class “navbar” so it doesn’t care if you used a div or a nav, but in terms of semantics, a nav tag if better for a navigation bar as the name suggests.

Thanks