Before answering this question, it is very important that you consult your doctor. Only a professional will be able to advise you for sure if you can do the Camino de Santiago.
Once your specialist has given you the go-ahead, you’ll need to make sure you’re in good physical condition, as you’ll be walking a considerable number of kilometres a day. Take time to plan your trip (accommodation and daily mileage) or hire the services of a specialized agency to avoid unforeseen events and be on the safe side. Consider the possibility of travelling accompanied and, above all, know your limits and do not overexert yourself in a way that could put your health at risk.