That is generally true, but it isn't an absolutism.
Depending on the state of the record, the stage of the court proceedings, etc., etc., oft times leave of court is required. Example the pendency of a counterclaim, or an s/j motion or one for an award of attorney fees or pending discover issues, etc. etc.