Ctrl+Alt+0 moves the Active Camera to the current viewport position.
For this to work there have to both be a camera in the scene and the camera must be set as active object.
If some other random object is incorrectly set as active camera that object will be moved instead.
Either add a new camera to your scene and make it active, or make an existing one active for the scene by selecting the camera object and pressing Ctrl+0.
If you want to keep the current view you can then press again Ctrl+0 to return to the previous state and finally press Ctrl+Alt+0 to bring the now active camera to line up with the current view.