Can a URL have two question marks?

I am working on the site and I have a situation that I need to have two question marks in the URL.

For example, I have a URL which was initially abc.com/login?next=/product/abc&[email protected] and after successful login user was redirecting to next part i.e. abc.com/product/abc&[email protected] but this was giving error.

So I’d tried to write question mark instead of & so my URL becomes abc.com/login?next=/product/[email protected] after successful login which is working fine on Localhost but my question is that is it valid to have two question marks in the URL.?