Was doctor's conservative speech appropriate?

Was Dr. Benjamin Carson's critique of ObamaCare in front of Pres. Obama at National Prayer Breakfast the wrong time for politics?