I believe you can, take a look at this related thread for a simple example
If you get stuck implementing it, come back here with a reproducible example of your issue.