yes… since your method returns an object array with the following properties:

{
IDProject: //—Your project id
IDSprint: //—Your sprint/group id… if this line represents a projetc, so set it to 0
IDTask: //—Your task id… if this line represents a sprint, so set it to 0
Type: //—1=Project; 2=Sprint; 3=Task
Description: //—Project, Sprint or Task description… depending on the Type
Start: //—Start date
End: //—End date
Percent: //—Task pencentage… null if this line is a Project ou Sprint
}

User: //-- Optional information, used to show at gantt's left side. You can return more properties to show.