Can we filter the routes using the distribute-list in/out of the command in OSPF?

How Can we filter the routes using the distribute-list in/out of the command in OSPF?