What kind of necklace? Jewelry or metal? If the necklace is thin, I'm afraid it will break inside. It is unlikely to be washed away because the washing machine has a filter. If it is a small jewelry necklace, once the thread is broken and becomes a small bead, it is likely to be washed away.
Good luck!