Is there a way to auto fit form contents in Bootstrap 4?

Here is the pen:

Is there a way to extend all the input boxes that it makes the button to push to the corner?

Solved it.

There’s a class called col-[sm|md|lg]-auto that takes as much space as need. I just added it to the wrapper of button.