Can I 'drawTo' texture, without adding the object to scene?

I want to draw my spritebatch to a texture without adding that spritebatch to any scene. Right now if I don’t give any parent to spritebatch its not drawing to the texture.