Please tell me how you can implement this
that at the time of purchase of the product the customer could choose additional products.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
I think you can use custom options for this kind of setup.
You can go through https://docs.magento.com/m2/ce/user_guide/catalog/settings-advanced-custom-options.html to learn about custom options.