Yes, if you unplug the washer first, lay towels down and drain the small hose slowly into a shallow pan. Opening the filter without draining it sends a drum's worth of water onto the floor. Never reach into the pump housing while the machine is plugged in.
Most front-loaders have a thin drain tube with a cap next to the filter. Pull it out, uncap it over a baking pan and let the water out in stages by raising and lowering the end. Once the level drops, turn the filter counterclockwise a little at a time. Expect lint, pocket debris and sometimes a sock. A basement laundry area, common in older St. Paul and Minneapolis homes, often has a floor drain close by, which makes this job easier.