How can I create an interface?

So would I just write the UInferface class with the GENERATED_UINTERFACE_BODY() and compile and then create the IInterface class and put in the UINTERFACE() macro?