Yeah, I agree with the above two comments. While you can get a letter from a postdoc, the letter will look better coming from the professor. And if you ask the professor, they’re likely going to at least consult with the postdoc anyway - if not simply have the postdoc draft it and then sign their own name with some edits.
You should ask the professor if they can write a letter supporting your application.