Looking at your the last card played
Yes, as noted in Law 66 B of The Rules of Duplicate Bridge, with a certain restriction:

B. Own Last Card
Until a card is led to the next trick, declarer or either
defender may inspect, but not expose, his own last
card played.

As the collection of tricks is mechanically different under the Laws of Rubber Bridge Law 66 - Inspection of Tricks is similarly a bit different:

Law 66 – Inspection of Tricks
Declarer or either defender may, until a member of
his side has led or played to the following trick, inspect
a trick and inquire what card each player has played to
it. Thereafter, until play ceases, quitted tricks may be inspected
only to account for a missing or surplus card. ....