iCloud Question

So i have the iphone 7 and its my first iphone ever so i got that msg sayin i dont have enough storage or whatever but i deletepics and it still says it . Does that mean that i have to go onto my icloud account and delete pics off of there or what ?!