Knowing some Brazilian Portuguese will I be able to communicate in Portugal.

Would learning a lot of European Portuguese help me when I go back to Brasil or is their Portuguese too different?