Yes, you can! Check out the image below for an example.
This is a treemap of sales by business categories and subcategories. The business categories are the distinct colors (green, blue, orange) and the sales value determines the color intensity.
Want to learn how to do this yourself? Check out this video: