This functionality is already available in WooCommerce.
Please navigate to WooCommerce > Settings > Advanced > Page setup and ensure that your Terms and Conditions page is assigned: https://postimg.cc/zLszR8Nm
Once a Terms and Conditions page is selected, WooCommerce will automatically display a required checkbox on the checkout page. Customers must accept the terms before they can complete their order.