Colorscale for go.Bar

Would this syntax using plotly express be useful?

import plotly.express as px
tips = px.data.tips()
fig = px.bar(tips, x="sex", y="total_bill", color='tip', color_continuous_scale=px.colors.qualitative.Dark24)
fig.show()