Form functionality for hidden elements

I’d like to create a multi-step form with custom code, and I was wondering, will a form submit information from elements that are hidden, and will the value be saved inside them at all?

If not, how would I go about it?