This article explains how to resize a volume using Disk Utility in macOS.
You can extend a volume as long as it is not the last volume on the drive. You must be prepared to delete the volume directly after the volume you want to extend, along with its data.
Make sure you have a current backup of all data on the drive you want to modify. Here's how to extend a volume.
Launch Disk Utility from Applications > Utilities.