Welcome to the forum.
Actually, you can make any color/shade background look black...even without photoshop. Black (non reflective) is easier though.
Objects show up on a photo because they have light reflecting off of them. So if you don't have any light reflecting off if a background...it will appear black in the photo.
By adjusting the settings of you camera, you can control the amount of exposure...so you can underexpose the background...making it appear dark/black on the photo.
That's all well and good...but you still need to see your subject in the photo. This means that you need to light up your subject...but avoid lighting up the background as well.
There are several methods to achieve this. One is to move the subject as far away from the background as you can. Light falls off over distance...so the farther away the background, the less light will be reflected off if it. Also, if you move the light source closer to the subject, you get more light, which means you can turn down your exposure (thus making the background darker).
Another thing that you can do, is to constrain the light that is lighting the subject. In a studio, you can use things like barn doors, grids or snoots...which keep the light where it's pointed...so that it doesn't 'spill' onto the background. You can also use something to go between the light and the background (or any other any that you don't want to be lit up).
So, it can be done without Photoshop.
However, it can still be hard to pull that off and you will get some light reflecting off of the background...and yes, you can use Photoshop to make it black. If it's close, you could use the levels adjustment and use the black point eye dropper and click on the background.
That will affect the whole image...so you might need to adjust the background separately from the subject...so the use of a layer mask would be the way to go.