That would sound strange. Pessoas are many persons, povo is a group of people, maybe cuz of religion, beliefs, culture, language.the best option would be "alguns povos gostam de perigo". By all means, pessoas would fit better
If you said "Alguns gostam do perigo", I don't know whether that is correct. OTOH if you said "alguns pessoas gostam..." that would be wrong because "pessoas" is feminine, so "algumas pessoas" is the correct form of the noun phrase.