No, you need to use lstat()
to be able to detect if a file is a soft link.
Also make sure that you understand that typically, there are not three different types of files: files, hard links to files, and soft links to files. Instead, there are only two: hard links to files and soft links. What you might think of as "the file" is in fact a hard link too, it's just typically the single link.