Absolutely, in this sentence, either 'hard' or 'difficult' can be used to say 'not easy'.
The trouble would arise when using 'hard' to describe the firmness or toughness of an object. For example, "Diamonds are very hard" uses this different meaning of 'hard'. Here, we would not be able to say, "Diamonds are very difficult".