No, you can't buy a stock (causing it to go up) and then sell at the higher price; that would be creating profit out of nowhere. And aren't bought-back shares destroyed?
When a company buys back shares, it can either cancel them or hold them as treasury stock. Treasury stock can then be reissued at a later date at the then market price.