It does not. Also, it just sometimes happens, though, most shadow pokemon will be basically 'shunned' by their hometown.