Yes, WordPress can be used offline, provided you install a local web server on your computer.

Here are my recommendations for a local web server:

Note; if you have an online WordPress website, you cannot use it offline.