The main rule is that o is pronounced as a long oo-like sound when it's followed by only one consonant, and as a short o-sound when it's followed by two consonants (ck is just a spelling convention, we write that instead of two k:s).
There are some exceptions but this isn't one of them :)