You'll get to use this function later in the course. We use a different one earlier in the course because we need that to make the practices work reliably on some systems.
But yes, you can totally use it instead of Input.get_axis() in this case, it works great!