You're partially right. Gavity has infinite range, so a distant star does exert some force on you. And that force is present regardless of other gravitational fields like the Earth or Sun. However it's many orders of magnitude weaker than the force from the Earth and Sun so it's pretty much irrelevant.