Trackpad Pressure Control

Is there a way to have the force trackpad use its pressure sensitivity to control things like size and opacity in apps like Photoshop? Similar to the Apple Pencil.