you got it! That’s how you do it. It’s called a Sticky Nav.
btw, you might consider investing in this: