Yes. Plenty of people choose to do this to find a cheaper alternative to flying as well as to see a big section of the country, landscape, and culture on the way. You can get buses that start at night so you can save on lodging and be in Santa Marta the next day.