Is there a safe way to keep baby’s pacifier near ?

The ones that clip to clothing are unsafe while sleeping right ? Is there a safe version or no ?