Hi, i need to do an IF statement, does it support AND and OR in the same statement?

If Card1val = "A" And Card2val = "K" OR Card1val = "K" And Card2val = "A" Then

bascially, both need to contain A and K, doesnt matter which contains it. just as long as one of them has A, and the other has K.