No. Both are based on fruit and sugar, but a jam is made with pureed fruit and preserved for later use, while compote is made with whole fruit or fruit chunks and eaten immediately. Jam is also thicker than compote.