If they're thick enough and the nails are small enough.
My carpet came up off the board once and exposed little nails used to pin it down. Didn't realize until I walked over it barefoot.
And now I've got the feeling of nails in my feet haunting me whenever I'm not wearing socks.