If the tone of your conversation is friendly and informal, then yes, it’s ok to say “yeah”. But still, make sure you don’t reply with only this word since it’ll sound rude!