No, it is not inherently rude for a woman to walk in front of a man or vice versa. The idea that it is rude for a woman to walk ahead of a man is based on outdated and sexist gender norms. In modern society, both men and women have equal rights and should be treated with respect and equality.
Walking in front of someone is typically a matter of personal preference, situational context, or cultural norms. In many casual situations, it is entirely acceptable for anyone to walk ahead or alongside others. In more formal or ceremonial contexts, there might be established protocols for walking arrangements, but these are often based on tradition rather than gender.
It is essential to treat everyone with courtesy and respect, regardless of their gender. Judging someone's behavior based on gender stereotypes can perpetuate inequality and hinder progress toward a more inclusive and egalitarian society. So, feel free to walk where you need to, and encourage others to do the same without judgment based on gender.