Right -- but this is in reference to baby boomers. It's used to indicate the person is going to die in a couple decades and so their opinion doesn't matter. If it's used on someone other than a boomer it's probably an exaggeration or intentional misidentification meant to make the phrase even more provocative.
Hate to have to overexplain, but yeah, ok boomer is absolutely derived from baby boomer.