So long as all parties involved are in agreement, fourth-walling is acceptable. For example, should a character recognise Captain America as a comic book character they've read, and the player of Steve Rogers is approached OOCly about the situation and agrees, it is acceptable for your character to recognise them. Therefore it would be a case-by-case basis, but is well within the rules.
no subject