Hello,
There is no such option by default but you can implement this using third-party plugin, for example, WooCommerce Product addons.
Regards