Exactly.
Remember, the book of James is probably the oldest of the New Testament writings. Paul was probably familiar with James and probably had the following in mind when he penned 1 Corinthians.
James 1:23 For if any one is a hearer of the word and not a doer, he is like unto
a man beholding his natural face in a mirror:
A man face to face with himself.
James 1:24 for he beholdeth himself, and goeth away, and straightway forgetteth what manner of man he was.
25 But he that
looketh into the perfect law, the law of liberty, and so continueth, being not a hearer that forgetteth but a doer that worketh, this man shall be blessed in his doing.
When we get our eyes off of self (the Corinthians were (mis)using the gifts in a self-centered manner) and into the bible, the "perfect law of liberty" we see ourselves in the light of scripture, as God sees us.