value of the input field.

Hello, can I capture the text entered into an input field, store it in a variable, and then utilize the text value elsewhere? If it possible please let me know the steps I have to follow.