Yes, port length affects tuning, as we know that the longer port is equal to lower tuning, whereas the shorter port is equivalent to higher tuning. There are several factors like speaker and box on which tuning depends.