Yes, that is possible and I have provided some code that illustrates that in some thread already. I'll try to find the respective thread.
Update: Here it is