Background task for complication/glance preview?

Good morning,

I have written a widget/glance and now would like to add a complication, mainly as preview for the glance. My widget/glance obtain data via web requests in regular intervals and display it. This is done in my main application via a timer. Do I understand it correctly that for a complication to work, I'll have to move this into a background process that regularly does the requests and supplies complication/widget/glance with the data?

Regards, Robert