No, don't build a house near an inlet. Inlets move around. First the sand washes away on one side and builds up on the other, and then the sand washes away on that side and builds back up where it was before. It's hard to predict when all that might happen.
Some people built houses on the shore at Bogue Inlet at the western end of the barrier island that protects the towns of Morehead City and Swansboro from the Atlantic Ocean. Then the inlet started to shift. Bulldozers were brought in, sand fences were put up to help blowing sand build up where residents wanted it, and now sandbags have been put around some of the houses to keep the waves from washing them away.
It's not really working, though. The sea and the waves and the currents are relentless. Storms come along every year, and in some years there are catastrophic hurricanes with destructive winds and storm surges.
Before World War II, only the poor people lived on the shore. That was the only land they could afford. People of greater means knew the shore was a dangerous place to build a house. They lived away from the water, especially the ocean.
Now all that has changed. People want to walk out their front door and go swimming. It sounds nice, and if you can afford the insurance I guess it is. But be prepared to kiss your house goodbye when the next big storm rolls in.