Is my Vitamin D and Vitamin B12 level the reason for my poor mental health

I feel unmotivated, unconfident, depressed, anxious,not able to focus, face mood swings,and not able to find joy in things..can it be because of these two low vitamin levels and should I also take test for other minerals like magnesium and boron etc

I feel unmotivated, unconfident, depressed, anxious,not able to focus, face mood swings,and not able to find joy in things..can it be because of these two low vitamin levels and should I also take test for other minerals like magnesium and boron etc