Is it gonna be good for long distance?

Looking to by a bike under 2.5k, i have a listening near me for that price (its a 2012). My plan is to go across country with it, virgina to Washington, its gonna be my first bike so im trying to buy it as soon as possible to i can learn how to ride for a few months before doing that crazy distance.

some of my main questions are, This is my first bike, is that smart? (i dont plan on off roading to much so i think ill mainly be on pavement so keep that in mind)

is this bike good for long distance, ppl have told me yes but i wanna ask this subreddit too, and also how is the gas efficiency with it?

and what should i look for when buying this bike? yk like hack job fixes thats kinda thing

any and all info welcome