You can use Audacity if what you want is just to record your voice with the beat, but if you want to edit the beat or your vocal, or make cuts to your vocals, you should use a DAW like Fl Studio.
To record your voice over a beat you just have to use an audio editing software to be able to record your voice and export the recording of your voice with the beat.