Yes, simply do something like this:
mysprite=createsprite() ;createsprite returns a handle which we store in mysprite myanimatedtexture=loadanimtexture(file$,flags,frame_width,frame_height,first_frame,frame_count );check in the docs what the arguments for this function are entitytexture mysprite,myanimatedtexture,frame ;where frame is the frame of the animated texture to apply