Yes it's available, at least on 22.04, in the repositories.
Packages in the Ubuntu repositories are generally safe to install.
Installing through the terminal is no less safe than installing through some gui app like synaptic or Ubuntu Software.
It is, however, probably the quickest.
The package is pdfarranger
It installs like any other package
Code:
sudo apt install pdfarranger