It will work, but keep in mind a single rear hub brake is not a very effective means of stopping a bicycle. There's a reason why you only find coaster brakes on children's bikes and low-end department store bikes that are unlikely to be ridden fast or often.