Does changing colors to visualize different categories make sense?

In order to show more information in as little space as possible I thought of changing the gradient that's underneath depending on the category of the ad. Purple to pink gradients show services and blue to turquoise shows products. Was this a good decision or the category (Which there will be only 4 different categories; services, products, job and vehicles) is obvious enough that's not worth displaying each card differently?