Works if you don't have GD raccoons who simply knock over the bait traps take the food.  I managed to get a rat once but after the raccoons discovered the traps I laid out that ended my success.  Good tip is to put food on the trap without setting at least twice so the rat thinks it is safe to eat.  Dry cat or dog food smothered in peanut butter is best.  Then after both offerings are gone set the trap and bingo you will have a dead rat.