You can render parts of a scene separately and composite the rendered images. For more information on rendering in layers for compositing, see Render setup in Maya.