2D camera SDL_RenderSetViewport

Is the SDL_RenderSetViewport the right option to implement a 2D camera? From a small test I did it serves my needs, but I read somewhere that is not done for this and just for UI stuff…