For best results, it is always advisable to shoot your photographs in RAW format, rather than JPG. This allows a lot more flexibility when it comes to post production - adjusting brightness, shadows, contrast, color, and so on.
Think of RAW files along the same lines as a negative as was used in the old film days, or digital negative today. You process your RAW photos then save them out as JPG to use on the web, post on social media, or some design project. This means you always have a copy of your original photograph ...