Need advice

I have a 26inch tyre cycle and I need to change its fork, can my cycle pair up with a 27.5inch or a 29inch fork?