Playing An Animation

I just have a quick question. Im creating a Weapon system for my game and I have a BindToRender looking something like

RunService:BindToRenderStep(script.Parent.Name.."WeaponService",Enum.RenderPriority.First.Value + 1,function()
	if moving then
		AnimationTrack:Play()
	end)
end)	

Now im wondering if this and AnimationTrack:Play() is costly at all. Does Roblox somehow cancel the function if the loop animation is playing already?