Your sentence is correct. You could also say "It was very silly of Addy to cheat in the examination". It is clear that the cheating happened in the past from the use of "It was" at the beginning. However, I prefer your sentence.
Interested in Language