Yes. You can check which form is being submitted by adding a “name” attribute to the submit button.
<input type="submit" name="form1" value="Submit">
Then in you validation, just check if that exists:
if(isset($_REQUEST['form1'])){
// Form 1
} elseif(isset($_REQUEST['form2'])) {
// Form 2
}
This is one method at least, there are plenty of ways to deal with it.