Unless there is mold, mildew, or rancid…coffee doesn’t necessarily go bad. However, fresh coffee is always best.
What you will notice with coffee that has been stored for a while is the changes in its flavor. Coffee will begin to lose flavor and continue to oxidize as time passes, but it won't necessarily rot if stored properly.
If your coffee has been stored for months, maybe you'll want to consider getting new beans.
Ultimately, your tongue will be the judge in the matter. If it tastes good, then great.