How do i add a permission to a player?

Is there a way to do this even if the player is offline ?

using luck perms u can do it
the permission will be listed in the input box of a default group when you click on it
watch on yt on how to do it
in short install Luck Perms plugin