This is a myth and a black cat is not bad luck.
The superstition is your in for bad luck if a black cat crosses your path.
do you mean,its bad luck when a black cat crosses you at night?
According to the folklore it is only bad luck if you cross the black cat's path.
Bad Luck
Black
A black cat would be more unlucky than a white cat. An example of this would be the belief that a black cat crossing your path leads to bad luck. There is no bad luck that a white cat would give you.
a black cat or a black dog
A black cat is bad luck. If one crosses your path, it's a bad omen.
Depends if you believe in the myth of the black cat, but i would say no that would still make it bad luck if i believed in that.
The Black Cat
you get bad luck