Do magic weapons that require attunement count as magic (for Resistances) even if you are not attuned?

Resistance in a creatures stat block is written as follows:

bludgeoning, piercing, and slashing from non magical weapons

Does a weapon count as magical, even if I am not attuned to it? I know I can’t use the weapons magic abilities, but in my mind it would still be a magical weapon. Is there something in the rules concerning this?