Most beer has a shelf life, but this depends on the type of beer, the alcohol content, amount of hops added, and what temperature it is stored at.
Most basic styles of beer are best consumed within a few months of bottling, although some more complex beers taste better after being in the bottle for 3-6 months and some, even years.
Keep an eye on it, and ensure the lid is sealed tight during storage so gas is not escaping resulting in flat beer the longer you leave it.