Not without a great deal of pain. Most people will not be able to put any weight on a leg with a torn hamstring. If you can walk on the injured leg, it is likely a hamstring pull and not a tear, or you have an extremely high pain tolerance.