Very very close. A truss is any engineered framework designed to transfer the load of a structure above to load bearing structures on either end of a span. Trusses are uses to support roofs (usually gabled) as you describe, but they're also used to support bridge roadways. The king post is a part of a truss, but it doesn't support the truss itself.