However, the Sun does have what's called solar differential rotation. This means that different parts of the Sun rotate at different speeds. The equator rotates faster than the poles. This difference in rotation can create a slight tilt in the Sun's magnetic field, which can affect solar activity.
So, while the Sun doesn't have a physical tilt like Earth, it does have a rotational difference that can be seen as a tilt in its magnetic field.