Yes -- each will only submit with their respective forms.
If you have them in the same form, one will override the other and it is not valid.
EDIT:
As pointed out by Mahmoodvcs that the overriding only occurs in some languages (such as PHP) as is not inherent within HTML itself.