Purl vs Knit on a patter

I want to make a scarf.pattern I found. It is a one row repeat

K1, *yarn over, p2tog, repeat from * to last stitch, k1.

My question is, how different would the fabric be if I changed it to a K2tog?

Won’t it be identical since its a one row repeat

Welcome to KH!
Sure you could do that. Purl on every row or knit on every row give you the same stitch pattern.
Then are you planning to change the k1 at each end to a p1?
Can you tell us the name of the pattern?