Recording to a click can be just as hard as playing against a metronome, except you will hear your rhythmic mistakes afterwards where you night not be listening to yourself as much with a metronome.
The other nice part about being able to record is that you can make demos that you would like to perform with other people, or record with a studio, or record cool riffs or licks you want to save for later.
A Scarlett Solo USB Audio Interface with Pro Tools | First https://smile.amazon.com/dp/B01E6T56CM/ref=cm_sw_r_cp_apa_i_-sY6DbPSXN7R4) is right in your price range, but a Behringer could be just as good for most needs for less money.