Will a limited partnership (LP) or limited liability company (LLC) protect my assets?

Will a limited partnership (LP) or limited liability company (LLC) protect my assets?