Yes it is safe to get local anesthesia when you have a head cold as long as the doctors keep your airways clear and your nose is not completely stuffed
A head cold will only affect anesthesia when you are attempting to breathe it in, such as nitrous oxide gas. If the local anesthesia is injected, it doesn't matter if you have a cold.