No, it's unwise to add baking soda to the compost pile as it may slow down the composting process. If your compost pile is particularly smelly, it means that you don't have the right mixture of green and brown materials. Check out my article on how to make compost to work out what you should be doing.