Yes, depending on what you’re wanting the video to look like.
I’ve included links to relevant posts below.
First you would choose your final aspect ratio and work from there.
Set your Video Mode: Setting/Video Mode. If other than 16:9 , choose Custom/Add.
YouTube has changed their display for all videos, which I wrote about here with a video from EposVox explaining the changes: YouTube aspect ratios & player changes YouTube accepts all aspect ratios without black bars.
Here is a great thread to read : Black border issues when using clips that contain different resolutions