LMMS is just the tool used. If the music is your own creation and only uses internal instruments, samples etc then I believe you're fine.
OTOH if you use any samples or similar downloaded from the internet then it's your responsibility to check their license conditions. Not everything is royalty free or allows commercial use.
Steve