No. Michael Craig-Martin did not paint a safety pin. He is renowned for his conceptual artwork, particularly the "Real" series, which depicts everyday objects in a minimalist style.
His most famous piece from this series is "An Oak Tree" (1973), consisting of a glass of water on a shelf. The title presents the concept, not the physical object itself.
While Craig-Martin has used many objects in his work, a safety pin has not been a subject of his art.