Front lcd and glass on my iPhone 8 is cracked and the front camera is not working?

When I get the front screen assembly fixed will the camera also be replaced? Or will I have to get a whole new front camera assembly as well?

If the screen itself is cracked, then the repair would only be to the screen and not to the camera. It's possible it could help fix the issue, but could you be more descriptive of what you mean by "not working"? How is it not working? What happens when you try to use it? Etc?