How can I submit a newsletter user name in the same form as a product add to cart form?

I am creating a form with questions to add line item properties to the product as it’s added to the cart. However, the client wants a newsletter form in the middle of this process. Is it possible to submit a username to the newsletter form? Or is this not possible if the form is posting to the cart?