Need to block public access to S3 buckets

We have a requirement to block public access to our S3 buckets. Can this be added to the TF scripts?

Thanks!