Never say never.
Preflop I'll do it lateish in a tourney, the blinds are fairly high relative to stacks and someone limps and I've got a monster. I'll take the risk that he hits a better hand in exchange for him not being able to fold and getting some more money on the table where I'm a fav preflop.
Or in freerolls
to induce a shove sometimes too.
Postflop stack sizes come into play again. Sometimes it's the best way to get a weak player to continue with you by minraising his bet. He has something, but you give him pot odds
he can't turn down.
And also Ed Miller suggests considering minraises preflop with middle pocket pairs/suited aces/suited connectors. He figures this can work if the table limps/calls your value raise and you hit your big hand. By starting the pot building early without chasing anyone you get a head start at stacking someone.