Adding a custom required field to checkout

Is there a way to add a required field to the checkout process? I’m working on a wholesale site and want to collect EIN numbers from customers.