You can do that on pretty much any bike. Important questions to ask yourself...
Do you care if it's new? That won't buy much of a new bike, it will be either very simple or low quality (need not be both). But it will buy a pretty good used bike.
Do you want it to be racy or tough or comfortable?
Will there be hills, so you need more gears?