It is legal in the US as long as you are not intending and likely to incite imminent lawless action. Eg. To give a recent example, it's completely legal to chant "from the river to the sea, Palestine will be free" despite some interpreting that chant to be calling for genocide.