Yes it would - the logic here is to deal with a situation where the pid file has been deleted, or contains the incorrect process id.  As a last resort, the function tries to discover if ka-lite is running on that port, and then to try to kill it.