Adding custom field in checkout

Is there a way to add a custom field in checkout? I’m using the non-legacy storefront and would like to add one of the customer field I created.

It can only be done by writing some Javascript within the html of the theme for the shopping cart.