Almost (the pronouns are fine). I would prefer to say: This is a funny pencil which looks like a cigarette. My friend gave it to me as a birthday gift.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.