İs concealer necessary?

Whats job of foundation and concealer

Can anyone give me short summary i couldnt understand im new to makeup can i just use foundation?