Do you use this strategy, I have done it a few times and it has worked well but that could have been just luck

Everyone folds to the button. You are in the big blind and the button raises and you think it's a steal attempt, small blind folds, instead of a resteal bluff, just call and then bet on the flop no matter what cards. Is this a working strategy longterm? I realize it could be risky but it's not as obvious as reraising preflop.