Does an M.2 ssd takes up PCIE lanes?

Update: I plan to get a CPU with support for 16 PCI express lanes. but given a GPU requires 16 lanes (i assume all GPU are 16x tho i'm not sure) will it affect the speed of M.2 SSD if i install it on my motherboard?
3 answers 3