Shopify allows you to add only the product weight and not dimensions. If you would like to add weight & dimensions, integrate with carriers and calculate the shipping per package size, you will have to use an app like our Multi Carrier Shipping Label. The app helps you integrate with all top carriers and calculate the shipping based on your product weight & dimensions by adding custom boxes.
You can also check out other apps that helps you handle this here.
I hope this helps!