Is there a way to stop adding more to cart then quantity available?

Is there a way to stop a customer from adding more of a product to a cart then what is available? I have the quantities available listed but while testing I see that I can add as many of the product as I want to the cart, blowing way past the quantity available. Using 2.2.3. I appreciate any help.

I figured it out. If it was listed without a quantity then the number just keeps going on. The ones with a quantity throw up an error and correct the amount in the cart. I listed a bunch for testing purposes and I thought I added a quantity for all of them but I had not.