Can I add path weight in allshortestpath algo without call gds?

I use cypher like this:
"MATCH p=allShortestPaths((h)-[*1..20]->(k {value:true}))"
to search all pair shortest path,

can I add path weight into this cypher? Instead of call gds algo?